﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Wijmo.Master" AutoEventWireup="true" CodeBehind="DataBinding.aspx.cs" Inherits="ControlExplorer.C1TreeView.DataBanding" %>

<%@ Register Assembly="C1.Web.Wijmo.Controls.3" Namespace="C1.Web.Wijmo.Controls.C1TreeView" TagPrefix="wijmo" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:XmlDataSource ID="XmlDataSource" runat="server" DataFile="~/App_Data/treeview_structure.xml" XPath="root/treeviewnode"></asp:XmlDataSource>
    <asp:SiteMapDataSource ID="SiteMapDataSource" runat="server" ShowStartingNode="False" />
    <wijmo:C1TreeView ID="C1TreeView1" ShowCheckBoxes="true" DataSourceID="SiteMapDataSource" ShowExpandCollapse="true" Width="350px" runat="server">
    </wijmo:C1TreeView>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Description" runat="server">
    <p>
        <strong>C1TreeView</strong>支持数据绑定-既可以绑定到XML 和SiteMap 数据源，也可以通过创建动态的<strong>C1TreeView</strong>，从其他数据源读取数据。</p>
    <p>
        以下属性用来把<strong>C1TreeView </strong>绑定到数据源。</p>
    <ul>
        <li><strong>DataSourceID - </strong>指定要绑定的数据源.</li>
        <li><strong>C1TreeViewNodeBinding - </strong>确定<strong>XmlDataSource</strong>属性的映射关系和C1TreeView的数据域。 </li>
    </ul>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ControlOptions" runat="server">
    <p class="ControlOptions-Option-Header">
        选择绑定的数据域</p>
    <%--    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>--%>
    <div style="clear: none; float: left; width: 190px; margin-left: 5px;">
        <asp:RadioButton ID="Select_SiteMapDataSource" CssClass="radio DataBinding" AutoPostBack="true" Text="网站导航数据源" Checked="true" GroupName="DataSourceGroup" OnCheckedChanged="CheckChnged" runat="server" />
    </div>
    <div style="clear: none; float: left; width: 190px;">
        <asp:RadioButton ID="Select_XMLDataSource" CssClass="radio" AutoPostBack="true" Text="XML 数据源" GroupName="DataSourceGroup" OnCheckedChanged="CheckChnged" runat="server" />
    </div>
    <%--        </ContentTemplate>
    </asp:UpdatePanel>--%>
</asp:Content>
